package myzd.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author zks
 * @since 2017/10/18 18:18
 */
@Data
public class EmployeeDto {
  @JsonProperty("userid")
  private String userId;
  private String name;
  private String mobile;
  private String email;
  private String avatar;
  private int departmentId;
  private String departmentName;
  /**
   * 是否离职: false 表示离职，true 表示在职
   */
  private boolean inService;
  @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
  private Date dimissionDate;  //离职时间
  @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
  private Date createdAt;
  @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
  private Date modifiedAt;

  public String getStaffId() {
    return userId;
  }
}
